#reader(lib"read.ss""wxme")WXME0108 ## 
#|
   This file is in PLT Scheme editor format.
   Open this file in DrScheme version 370 or later to read it.

   Most likely, it was created by saving a program in DrScheme,
   and it probably contains a program with non-text elements
   (such as images or comment boxes).

            http://www.plt-scheme.org
|#
 26 7 #"wxtext\0"
3 1 6 #"wxtab\0"
1 1 8 #"wxmedia\0"
4 1 8 #"wximage\0"
2 0 34 #"(lib \"syntax-browser.ss\" \"mrlib\")\0"
1 0 16 #"drscheme:number\0"
3 0 44 #"(lib \"number-snip.ss\" \"drscheme\" \"private\")\0"
1 0 36 #"(lib \"comment-snip.ss\" \"framework\")\0"
1 0 43 #"(lib \"collapsed-snipclass.ss\" \"framework\")\0"
0 0 19 #"drscheme:sexp-snip\0"
0 0 36 #"(lib \"cache-image-snip.ss\" \"mrlib\")\0"
1 0 33 #"(lib \"bullet-snip.ss\" \"browser\")\0"
0 0 29 #"drscheme:bindings-snipclass%\0"
1 0 25 #"(lib \"matrix.ss\" \"htdp\")\0"
1 0 22 #"drscheme:lambda-snip%\0"
1 0 56
(
 #"(lib \"hrule-snip.ss\" \"macro-debugger\" \"syntax-browse"
 #"r\")\0"
) 1 0 18 #"java-comment-box%\0"
1 0 23 #"java-interactions-box%\0"
1 0 55
(
 #"(lib \"vertical-separator-snip.ss\" \"stepper\" \"private"
 #"\")\0"
) 1 0 18 #"drscheme:xml-snip\0"
1 0 31 #"(lib \"xml-snipclass.ss\" \"xml\")\0"
1 0 21 #"drscheme:scheme-snip\0"
2 0 34 #"(lib \"scheme-snipclass.ss\" \"xml\")\0"
1 0 10 #"text-box%\0"
1 0 32 #"(lib \"text-snipclass.ss\" \"xml\")\0"
1 0 15 #"test-case-box%\0"
2 0 1 6 #"wxloc\0"
00000000000 1 52 0 1 #"\0"
0 75 1 #"\0"
0 10 90 -1 90 -1 3 -1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 255 255 255 1 -1 0 9
#"Standard\0"
0 75 9 #"Consolas\0"
0 8 90 -1 90 -1 0 -1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 255 255 255 1 -1 2 1
#"\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 1 1 1 1 1 1 0 0 0 0 0 0 -1 -1 2 24
#"framework:default-color\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 -1 -1 2 1
#"\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 150 0 150 0 0 0 -1 -1 2 15
#"text:ports out\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 150 0 150 0 0 0 -1 -1 2 1
#"\0"
0 -1 1 #"\0"
1 0 -1 -1 93 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 255 0 0 0 0 0 -1 -1 2 15
#"text:ports err\0"
0 -1 1 #"\0"
1 0 -1 -1 93 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 255 0 0 0 0 0 -1 -1 2 1
#"\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 0 0 175 0 0 0 -1 -1 2 17
#"text:ports value\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 0 0 175 0 0 0 -1 -1 2 1
#"\0"
0 -1 1 #"\0"
1 0 92 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 34 139 34 0 0 0 -1 -1 2 27
#"Matching Parenthesis Style\0"
0 -1 1 #"\0"
1 0 92 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 34 139 34 0 0 0 -1 -1 2 1
#"\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 38 38 128 0 0 0 -1 -1 2 37
#"framework:syntax-color:scheme:symbol\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 38 38 128 0 0 0 -1 -1 2 38
#"framework:syntax-color:scheme:keyword\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 38 38 128 0 0 0 -1 -1 2 1
#"\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 194 116 31 0 0 0 -1 -1 2
38 #"framework:syntax-color:scheme:comment\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 194 116 31 0 0 0 -1 -1 2 1
#"\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 41 128 38 0 0 0 -1 -1 2 37
#"framework:syntax-color:scheme:string\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 41 128 38 0 0 0 -1 -1 2 39
#"framework:syntax-color:scheme:constant\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 41 128 38 0 0 0 -1 -1 2 1
#"\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 132 60 36 0 0 0 -1 -1 2 42
#"framework:syntax-color:scheme:parenthesis\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 132 60 36 0 0 0 -1 -1 2 1
#"\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 255 0 0 0 0 0 -1 -1 2 36
#"framework:syntax-color:scheme:error\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 255 0 0 0 0 0 -1 -1 2 1
#"\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 -1 -1 2 36
#"framework:syntax-color:scheme:other\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 -1 -1 2 1
#"\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 81 112 203 0 0 0 -1 -1 2
38 #"drscheme:check-syntax:lexically-bound\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 81 112 203 0 0 0 -1 -1 2 1
#"\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 68 0 203 0 0 0 -1 -1 2 31
#"drscheme:check-syntax:imported\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 68 0 203 0 0 0 -1 -1 2 41
#"profj:syntax-colors:scheme:block-comment\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 194 116 31 0 0 0 -1 -1 2
35 #"profj:syntax-colors:scheme:keyword\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 -1 -1 2 1
#"\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 139 0 139 0 0 0 -1 -1 2 37
#"profj:syntax-colors:scheme:prim-type\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 139 0 139 0 0 0 -1 -1 2 38
#"profj:syntax-colors:scheme:identifier\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 38 38 128 0 0 0 -1 -1 2 1
#"\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 34 139 34 0 0 0 -1 -1 2 34
#"profj:syntax-colors:scheme:string\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 34 139 34 0 0 0 -1 -1 2 35
#"profj:syntax-colors:scheme:literal\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 34 139 34 0 0 0 -1 -1 2 35
#"profj:syntax-colors:scheme:comment\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 194 116 31 0 0 0 -1 -1 2
33 #"profj:syntax-colors:scheme:error\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 255 0 0 0 0 0 -1 -1 2 35
#"profj:syntax-colors:scheme:default\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 -1 -1 2 37
#"profj:syntax-colors:scheme:uncovered\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 -1 -1 2 35
#"profj:syntax-colors:scheme:covered\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 139 0 139 0 0 0 -1 -1 4 1
#"\0"
0 70 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 1 1 1 1 1 1 0 0 0 0 0 0 -1 -1 4 4
#"XML\0"
0 70 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 1 1 1 1 1 1 0 0 0 0 0 0 -1 -1 8 1
#"\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 255 0 0 0 0 0 -1 -1 8 24
#"drscheme:text:ports err\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 255 0 0 0 0 0 -1 -1 4 1
#"\0"
0 71 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 1 1 1 1 1 1 0 0 0 0 0 0 -1 -1 4 1
#"\0"
0 -1 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 1 0 0 0 0 0 0 0 0 1 1 1 0 0 255 0 0 0 -1 -1 4 1
#"\0"
0 71 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 1 0 0 0 0 0 0 0 0 1 1 1 0 0 255 0 0 0 -1 -1 4 1
#"\0"
0 71 1 #"\0"
1 0 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 1 1 1 0 100 0 0 0 0 -1 -1
00000000001 0 00000000000 3199 0 39 3 78
(
 #"//-----------------------------------------------------------------"
 #"-----------"
) 0 0 39 29 1 #"\n"
0 0 39 3 78
(
 #"//-----------------------------------------------------------------"
 #"-----------"
) 0 0 39 29 1 #"\n"
0 0 31 3 2 #"/*"
0 0 31 29 1 #"\n"
0 0 31 3 26 #"  Homework 3 CSU213 Proulx"
0 0 31 29 1 #"\n"
0 0 31 3 16 #"  Adam Blackwell"
0 0 31 29 1 #"\n"
0 0 31 3 6 #"  8333"
0 0 31 29 1 #"\n"
0 0 31 3 13 #"  James Morin"
0 0 31 29 1 #"\n"
0 0 31 3 7 #"  9759?"
0 0 31 29 1 #"\n"
0 0 31 3 2 #"*/"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 39 3 78
(
 #"//-----------------------------------------------------------------"
 #"-----------"
) 0 0 39 29 1 #"\n"
0 0 39 3 78
(
 #"//-----------------------------------------------------------------"
 #"-----------"
) 0 0 39 29 1 #"\n"
0 0 39 3 26 #"//Problem 15.8 on page 175"
0 0 39 29 1 #"\n"
0 0 39 3 67
#"//Design the following methods for the class hierarchy representing"
0 0 39 29 1 #"\n"
0 0 39 3 16 #"//river systems."
0 0 39 29 1 #"\n"
0 0 39 3 61
#"//1. maxLength, which computes the length of the longest path"
0 0 39 29 1 #"\n"
0 0 39 3 27 #"//through the river system;"
0 0 39 29 1 #"\n"
0 0 39 3 63
#"//2. confluences, which counts the number of confluences in the"
0 0 39 29 1 #"\n"
0 0 39 3 19 #"//river system; and"
0 0 39 29 1 #"\n"
0 0 39 3 69
#"//3. locations, which produces a list of all locations on this river,"
0 0 39 29 1 #"\n"
0 0 39 3 45 #"//including sources, mouths, and confluences."
0 0 39 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 39 3 78
(
 #"//-----------------------------------------------------------------"
 #"-----------"
) 0 0 39 29 1 #"\n"
0 0 39 3 78
(
 #"//-----------------------------------------------------------------"
 #"-----------"
) 0 0 39 29 1 #"\n"
0 0 39 3 19 #"//Problem 15.11 on "
0 0 39 3 8 #"page 176"
0 0 39 29 1 #"\n"
0 0 39 3 69
#"//Figure 59 contains a class diagram that descrives the GUI hierarchy"
0 0 39 29 1 #"\n"
0 0 39 3 67
#"//of exercise 6.5. Note that one of its interfaces, ITable, refines"
0 0 39 29 1 #"\n"
0 0 39 3 34 #"//another interface IGUIComponent."
0 0 39 29 1 #"\n"
0 0 39 3 67
#"//Add templates to each box in this diagram. Do not assume anything"
0 0 39 29 1 #"\n"
0 0 39 3 47 #"//about the return type; do not design classes."
0 0 39 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 39 3 78
(
 #"//-----------------------------------------------------------------"
 #"-----------"
) 0 0 39 29 1 #"\n"
0 0 39 3 78
(
 #"//-----------------------------------------------------------------"
 #"-----------"
) 0 0 39 29 1 #"\n"
0 0 39 3 12 #"//Exercise 3"
0 0 39 29 1 #"\n"
0 0 39 3 67
#"//This problem continues the work on mobiles we have started during"
0 0 39 29 1 #"\n"
0 0 39 3 65
#"//the lectures. The file mobile-methods-lecture.java contains the"
0 0 39 29 1 #"\n"
0 0 39 3 64
#"//data definitions, examples of data, and the method totalWeight"
0 0 39 29 1 #"\n"
0 0 39 3 28 #"//we have designed in class."
0 0 39 29 1 #"\n"
0 0 39 3 60
#"//Design the method draw() that consumes a Canvas and a Posn"
0 0 39 29 1 #"\n"
0 0 39 3 70
(
 #"//that represents the point where the top of the mobile will hang. "
 #"The"
) 0 0 39 29 1 #"\n"
0 0 39 3 70
(
 #"//method draws the mobile with black lines for the struts, and for "
 #"the"
) 0 0 39 29 1 #"\n"
0 0 39 3 68
#"//hanging lines. For a simple mobile, there should be a disk of the "
0 0 39 29 1 #"\n"
0 0 39 3 12 #"//appropriat"
0 0 39 3 59
#"e color and with the size proportionate to its weight shown"
0 0 39 29 1 #"\n"
0 0 39 3 25 #"//at the end of the line."
0 0 39 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 39 3 22 #"// CS U213 Spring 2009"
0 0 39 29 1 #"\n"
0 0 39 3 15 #"// Assignment 3"
0 0 39 29 1 #"\n"
0 0 39 3 22 #"// Portfolio Problem 3"
0 0 39 29 1 #"\n"
0 0 39 3 18 #"// October 2, 2008"
0 0 39 29 1 #"\n"
0 0 39 3 22 #"// mobile-methods.java"
0 0 39 29 1 #"\n"
0 0 31 3 2 #"/*"
0 0 31 29 1 #"\n"
0 0 31 3 17 #"  Sample mobiles:"
0 0 31 29 1 #"\n"
0 0 31 3 17 #"  ---------------"
0 0 31 29 1 #"\n"
0 0 31 3 2 #"  "
0 0 31 29 1 #"\n"
0 0 31 3 22 #"  Simple mobile      |"
0 0 31 29 1 #"\n"
0 0 31 3 22 #"                     |"
0 0 31 29 1 #"\n"
0 0 31 3 23 #"                     10"
0 0 31 29 1 #"\n"
0 0 31 3 24 #"                    blue"
0 0 31 29 1 #"\n"
0 0 31 3 2 #"  "
0 0 31 29 1 #"\n"
0 0 31 3 26 #"  Complex mobile         |"
0 0 31 29 1 #"\n"
0 0 31 3 26 #"                         |"
0 0 31 29 1 #"\n"
0 0 31 3 26 #"                         |"
0 0 31 29 1 #"\n"
0 0 31 3 31 #"             ------------+-----"
0 0 31 29 1 #"\n"
0 0 31 3 31 #"             |                |"
0 0 31 29 1 #"\n"
0 0 31 3 31 #"       ------+------          |"
0 0 31 29 1 #"\n"
0 0 31 3 32 #"       |           |          | "
0 0 31 29 1 #"\n"
0 0 31 3 36 #"       10          |          40    "
0 0 31 29 1 #"\n"
0 0 31 3 34 #"      red          10        green"
0 0 31 29 1 #"\n"
0 0 31 3 22 #"                  blue"
0 0 31 29 1 #"\n"
0 0 31 3 2 #"*/"
0 0 4 29 1 #"\n"
0 0 32 3 6 #"import"
0 0 4 3 1 #" "
0 0 35 3 4 #"draw"
0 0 41 3 1 #"."
0 0 32 3 1 #"*"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 32 3 6 #"import"
0 0 4 3 1 #" "
0 0 35 3 8 #"geometry"
0 0 41 3 1 #"."
0 0 32 3 1 #"*"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 32 3 6 #"import"
0 0 4 3 1 #" "
0 0 35 3 6 #"colors"
0 0 41 3 1 #"."
0 0 32 3 1 #"*"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 31 3 2 #"/*"
0 0 31 29 1 #"\n"
0 0 31 3 44 #"               +---------+                  "
0 0 31 29 1 #"\n"
0 0 31 3 43 #"               | IMobile |<---------------+"
0 0 31 29 1 #"\n"
0 0 31 3 43 #"               +---------+                |"
0 0 31 29 1 #"\n"
0 0 31 3 43 #"               +---------+                |"
0 0 31 29 1 #"\n"
0 0 31 3 43 #"                   |                      |"
0 0 31 29 1 #"\n"
0 0 31 3 43 #"                  / \\                     |"
0 0 31 29 1 #"\n"
0 0 31 3 4 #"    "
0 0 31 3 39 #"              ---                     |"
0 0 31 29 1 #"\n"
0 0 31 3 43 #"                   |                      |"
0 0 31 29 1 #"\n"
0 0 31 3 43 #"         ---------------------            |"
0 0 31 29 1 #"\n"
0 0 31 3 43 #"         |                   |            |"
0 0 31 29 1 #"\n"
0 0 31 3 43 #"  +--------------+   +---------------+    |"
0 0 31 29 1 #"\n"
0 0 31 3 43 #"  | Simple       |   | Complex       |    |"
0 0 31 29 1 #"\n"
0 0 31 3 43 #"  +--------------+   +---------------+    |"
0 0 31 29 1 #"\n"
0 0 31 3 43 #"  | int length   |   | int length    |    |"
0 0 31 29 1 #"\n"
0 0 31 3 43 #"  | int weight   |   | int leftside  |    |"
0 0 31 29 1 #"\n"
0 0 31 3 43 #"  | IColor color |   | int rightside |    |"
0 0 31 29 1 #"\n"
0 0 31 3 44 #"  +--------------+   | IMobile left  |----+ "
0 0 31 29 1 #"\n"
0 0 31 3 45 #"                     | IMobile right |----+  "
0 0 31 29 1 #"\n"
0 0 31 3 39 #"                     +---------------+ "
0 0 31 29 1 #"\n"
0 0 31 3 2 #"*/"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 39 3 24 #"// to represent a mobile"
0 0 39 29 1 #"\n"
0 0 32 3 9 #"interface"
0 0 4 3 1 #" "
0 0 35 3 7 #"IMobile"
0 0 4 3 1 #" "
0 0 32 3 1 #"{"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 39 3 42 #"// compute the total weight of this mobile"
0 0 39 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 34 3 3 #"int"
0 0 4 3 1 #" "
0 0 35 3 11 #"totalWeight"
0 0 32 3 2 #"()"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 39 3 42 #"// compute the total length of this mobile"
0 0 39 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 39 3 20 #"//int totalLength();"
0 0 39 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 39 3 30 #"// is this mobile is balanced?"
0 0 39 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 39 3 23 #"//boolean isBalanced();"
0 0 39 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 32 3 1 #"}"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 39 3 54 #"// to represent an item hanging at the end of a mobile"
0 0 39 29 1 #"\n"
0 0 32 3 5 #"class"
0 0 4 3 1 #" "
0 0 35 3 6 #"Simple"
0 0 4 3 1 #" "
0 0 32 3 10 #"implements"
0 0 4 3 1 #" "
0 0 35 3 7 #"IMobile"
0 0 4 3 1 #" "
0 0 32 3 1 #"{"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 34 3 3 #"int"
0 0 4 3 1 #" "
0 0 35 3 6 #"length"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 34 3 3 #"int"
0 0 4 3 1 #" "
0 0 35 3 6 #"weight"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 6 #"IColor"
0 0 4 3 1 #" "
0 0 35 3 5 #"color"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 6 #"Simple"
0 0 32 3 1 #"("
0 0 34 3 3 #"int"
0 0 4 3 1 #" "
0 0 35 3 6 #"length"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 34 3 3 #"int"
0 0 4 3 1 #" "
0 0 35 3 6 #"weight"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 35 3 6 #"IColor"
0 0 4 3 1 #" "
0 0 35 3 5 #"color"
0 0 32 3 1 #")"
0 0 4 3 1 #" "
0 0 32 3 1 #"{"
0 0 4 29 1 #"\n"
0 0 4 3 4 #"    "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 6 #"length"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 35 3 6 #"length"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 4 #"    "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 6 #"weight"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 35 3 6 #"weight"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 4 #"    "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 5 #"color"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 35 3 5 #"color"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 32 3 1 #"}"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 31 3 12 #"/* TEMPLATE:"
0 0 31 29 1 #"\n"
0 0 31 3 10 #"   FIELDS:"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"    ... this.length ...         -- int"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"    ... this.weight ...         -- int"
0 0 31 29 1 #"\n"
0 0 31 3 41 #"    ... this.color ...          -- IColor"
0 0 31 29 1 #"\n"
0 0 31 29 1 #"\n"
0 0 31 3 12 #"    METHODS:"
0 0 31 29 1 #"\n"
0 0 31 3 42 #"    ... this.totalWeight() ...      -- int"
0 0 31 29 1 #"\n"
0 0 31 3 42 #"    ... this.totalLength() ...      -- int"
0 0 31 29 1 #"\n"
0 0 31 3 47 #"    ... this.isBalanced() ...        -- boolean"
0 0 31 29 1 #"\n"
0 0 31 3 2 #"*/"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 39 3 49 #"// compute the total weight of this simple mobile"
0 0 39 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 34 3 3 #"int"
0 0 4 3 1 #" "
0 0 35 3 11 #"totalWeight"
0 0 32 3 3 #"(){"
0 0 4 29 1 #"\n"
0 0 4 3 4 #"    "
0 0 32 3 6 #"return"
0 0 4 3 1 #" "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 6 #"weight"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 32 3 1 #"}"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 4 29 1 #"\n"
0 0 32 3 1 #"}"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 39 3 56 #"// to represent a part of support structure for a mobile"
0 0 39 29 1 #"\n"
0 0 32 3 5 #"class"
0 0 4 3 1 #" "
0 0 35 3 7 #"Complex"
0 0 4 3 1 #" "
0 0 32 3 10 #"implements"
0 0 4 3 1 #" "
0 0 35 3 7 #"IMobile"
0 0 4 3 1 #" "
0 0 32 3 1 #"{"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 34 3 3 #"int"
0 0 4 3 1 #" "
0 0 35 3 6 #"length"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 34 3 3 #"int"
0 0 4 3 1 #" "
0 0 35 3 8 #"leftSide"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 34 3 3 #"int"
0 0 4 3 1 #" "
0 0 35 3 9 #"rightSide"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 7 #"IMobile"
0 0 4 3 1 #" "
0 0 35 3 4 #"left"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 7 #"IMobile"
0 0 4 3 1 #" "
0 0 35 3 5 #"right"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 7 #"Complex"
0 0 32 3 1 #"("
0 0 34 3 3 #"int"
0 0 4 3 1 #" "
0 0 35 3 6 #"length"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 34 3 3 #"int"
0 0 4 3 1 #" "
0 0 35 3 8 #"leftSide"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 34 3 3 #"int"
0 0 4 3 1 #" "
0 0 35 3 9 #"rightSide"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 4 29 1 #"\n"
0 0 4 3 10 #"          "
0 0 35 3 7 #"IMobile"
0 0 4 3 1 #" "
0 0 35 3 4 #"left"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 35 3 7 #"IMobile"
0 0 4 3 1 #" "
0 0 35 3 5 #"right"
0 0 32 3 1 #")"
0 0 4 3 1 #" "
0 0 32 3 1 #"{"
0 0 4 29 1 #"\n"
0 0 4 3 4 #"    "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 6 #"length"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 35 3 6 #"length"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 4 #"    "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 8 #"leftSide"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 35 3 8 #"leftSide"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 4 #"    "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 9 #"rightSide"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 35 3 9 #"rightSide"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 4 #"    "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 4 #"left"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 35 3 4 #"left"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 4 #"    "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 5 #"right"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 35 3 5 #"right"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 32 3 1 #"}"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 31 3 12 #"/* TEMPLATE:"
0 0 31 29 1 #"\n"
0 0 31 3 10 #"   FIELDS:"
0 0 31 29 1 #"\n"
0 0 31 3 5 #"    ."
0 0 31 3 35 #".. this.length ...           -- int"
0 0 31 29 1 #"\n"
0 0 31 3 40 #"    ... this.leftside ...         -- int"
0 0 31 29 1 #"\n"
0 0 31 3 40 #"    ... this.rightside ...        -- int"
0 0 31 29 1 #"\n"
0 0 31 3 44 #"    ... this.left ...             -- IMobile"
0 0 31 29 1 #"\n"
0 0 31 3 44 #"    ... this.right ...            -- IMobile"
0 0 31 29 1 #"\n"
0 0 31 29 1 #"\n"
0 0 31 3 12 #"    METHODS:"
0 0 31 29 1 #"\n"
0 0 31 3 42 #"    ... this.totalWeight() ...      -- int"
0 0 31 29 1 #"\n"
0 0 31 3 42 #"    ... this.totalLength() ...      -- int"
0 0 31 29 1 #"\n"
0 0 31 3 46 #"    ... this.isBalanced) ...        -- boolean"
0 0 31 29 1 #"\n"
0 0 31 3 2 #"  "
0 0 31 29 1 #"\n"
0 0 31 3 23 #"    METHODS FOR FIELDS:"
0 0 31 29 1 #"\n"
0 0 31 3 47 #"    ... this.left.totalWeight() ...      -- int"
0 0 31 29 1 #"\n"
0 0 31 3 47 #"    ... this.left.totalLength() ...      -- int"
0 0 31 29 1 #"\n"
0 0 31 3 51 #"    ... this.left.isBalanced) ...        -- boolean"
0 0 31 29 1 #"\n"
0 0 31 29 1 #"\n"
0 0 31 3 48 #"    ... this.right.totalWeight() ...      -- int"
0 0 31 29 1 #"\n"
0 0 31 3 48 #"    ... this.right.totalLength() ...      -- int"
0 0 31 29 1 #"\n"
0 0 31 3 53 #"    ... this.right.isBalanced() ...        -- boolean"
0 0 31 29 1 #"\n"
0 0 31 3 2 #"*/"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 39 3 50 #"// compute the total weight of this complex mobile"
0 0 39 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 34 3 3 #"int"
0 0 4 3 1 #" "
0 0 35 3 11 #"totalWeight"
0 0 32 3 3 #"(){"
0 0 4 29 1 #"\n"
0 0 4 3 4 #"    "
0 0 32 3 6 #"return"
0 0 4 3 1 #" "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 4 #"left"
0 0 41 3 1 #"."
0 0 35 3 11 #"totalWeight"
0 0 32 3 2 #"()"
0 0 4 3 1 #" "
0 0 32 3 1 #"+"
0 0 4 29 1 #"\n"
0 0 4 3 11 #"           "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 5 #"right"
0 0 41 3 1 #"."
0 0 35 3 11 #"totalWeight"
0 0 32 3 2 #"()"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 32 3 1 #"}"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 32 3 1 #"}"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 31 3 2 #"/*"
0 0 31 29 1 #"\n"
0 0 31 3 17 #"  Sample mobiles:"
0 0 31 29 1 #"\n"
0 0 31 3 17 #"  ---------------"
0 0 31 29 1 #"\n"
0 0 31 3 2 #"  "
0 0 31 29 1 #"\n"
0 0 31 3 10 #"  simple1:"
0 0 31 29 1 #"\n"
0 0 31 3 22 #"                     |"
0 0 31 29 1 #"\n"
0 0 31 3 22 #"                     |"
0 0 31 29 1 #"\n"
0 0 31 3 18 #"                  "
0 0 31 3 5 #"   10"
0 0 31 29 1 #"\n"
0 0 31 3 24 #"                    blue"
0 0 31 29 1 #"\n"
0 0 31 3 2 #"  "
0 0 31 29 1 #"\n"
0 0 31 3 63
#"  complex2 (with complex1 on the left and simple2 on the right)"
0 0 31 29 1 #"\n"
0 0 31 3 74
(
 #"                 complex1 (with simple3 on the left, simple1 on the"
 #" right)"
) 0 0 31 29 1 #"\n"
0 0 31 3 2 #"  "
0 0 31 29 1 #"\n"
0 0 31 3 26 #"                         |"
0 0 31 29 1 #"\n"
0 0 31 3 26 #"                         |"
0 0 31 29 1 #"\n"
0 0 31 3 26 #"                         |"
0 0 31 29 1 #"\n"
0 0 31 3 32 #"             ------------+------"
0 0 31 29 1 #"\n"
0 0 31 3 32 #"             |                 |"
0 0 31 29 1 #"\n"
0 0 31 3 32 #"       ------+------           |"
0 0 31 29 1 #"\n"
0 0 31 3 33 #"       |           |           | "
0 0 31 29 1 #"\n"
0 0 31 3 37 #"       10          |           40    "
0 0 31 29 1 #"\n"
0 0 31 3 35 #"      red          10         green"
0 0 31 29 1 #"\n"
0 0 31 3 22 #"                  blue"
0 0 31 29 1 #"\n"
0 0 31 3 2 #"*/"
0 0 4 29 1 #"\n"
0 0 32 3 5 #"class"
0 0 4 3 1 #" "
0 0 35 3 8 #"Examples"
0 0 4 3 1 #" "
0 0 32 3 1 #"{"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 8 #"Examples"
0 0 32 3 4 #"(){}"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 7 #"IMobile"
0 0 4 3 1 #" "
0 0 35 3 7 #"simple1"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 6 #"Simple"
0 0 32 3 1 #"("
0 0 38 3 2 #"20"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 38 3 2 #"10"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 4 #"Blue"
0 0 32 3 3 #"())"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 7 #"IMobile"
0 0 4 3 1 #" "
0 0 35 3 7 #"simple2"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 6 #"Simple"
0 0 32 3 1 #"("
0 0 38 3 2 #"30"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 38 3 2 #"40"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 5 #"Green"
0 0 32 3 3 #"())"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 7 #"IMobile"
0 0 4 3 1 #" "
0 0 35 3 7 #"simple3"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 6 #"Simple"
0 0 32 3 1 #"("
0 0 38 3 2 #"10"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 38 3 2 #"10"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 3 #"Red"
0 0 32 3 3 #"())"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 7 #"IMobile"
0 0 4 3 1 #" "
0 0 35 3 8 #"complex1"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 7 #"Complex"
0 0 32 3 1 #"("
0 0 38 3 2 #"10"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 38 3 1 #"5"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 38 3 1 #"5"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 7 #"simple3"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 7 #"simple1"
0 0 32 3 1 #")"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 7 #"IMobile"
0 0 4 3 1 #" "
0 0 35 3 8 #"complex2"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 7 #"Complex"
0 0 32 3 1 #"("
0 0 38 3 2 #"30"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 38 3 2 #"10"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 38 3 1 #"5"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 8 #"complex1"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 7 #"simple2"
0 0 32 3 1 #")"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 39 3 62
#"// test the method totalWeight for the IMobile class hierarchy"
0 0 39 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 34 3 7 #"boolean"
0 0 4 3 1 #" "
0 0 35 3 15 #"testTotalWeight"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 29 1 #"\n"
0 0 4 3 4 #"    "
0 0 32 3 6 #"(check"
0 0 4 3 1 #" "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 7 #"simple1"
0 0 41 3 1 #"."
0 0 35 3 11 #"totalWeight"
0 0 32 3 2 #"()"
0 0 4 3 1 #" "
0 0 32 3 6 #"expect"
0 0 4 3 1 #" "
0 0 38 3 2 #"10"
0 0 32 3 1 #")"
0 0 4 3 1 #" "
0 0 32 3 2 #"&&"
0 0 4 29 1 #"\n"
0 0 4 3 4 #"    "
0 0 32 3 6 #"(check"
0 0 4 3 1 #" "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 8 #"complex1"
0 0 41 3 1 #"."
0 0 35 3 11 #"totalWeight"
0 0 32 3 2 #"()"
0 0 4 3 1 #" "
0 0 32 3 6 #"expect"
0 0 4 3 1 #" "
0 0 38 3 2 #"20"
0 0 32 3 1 #")"
0 0 4 3 1 #" "
0 0 32 3 2 #"&&"
0 0 4 29 1 #"\n"
0 0 4 3 4 #"    "
0 0 32 3 6 #"(check"
0 0 4 3 1 #" "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 8 #"complex2"
0 0 41 3 1 #"."
0 0 35 3 11 #"totalWeight"
0 0 32 3 2 #"()"
0 0 4 3 1 #" "
0 0 32 3 6 #"expect"
0 0 4 3 1 #" "
0 0 38 3 2 #"60"
0 0 32 3 1 #")"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 32 3 1 #"}"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 31 3 2 #"/*"
0 0 31 29 1 #"\n"
0 0 31 3 78
(
 #"//-----------------------------------------------------------------"
 #"-----------"
) 0 0 31 29 1 #"\n"
0 0 31 3 78
(
 #"//-----------------------------------------------------------------"
 #"-----------"
) 0 0 31 29 1 #"\n"
0 0 31 3 30 #"  Pair Programming Assignment:"
0 0 31 29 1 #"\n"
0 0 31 3 78
(
 #"//-----------------------------------------------------------------"
 #"-----------"
) 0 0 31 29 1 #"\n"
0 0 31 3 78
(
 #"//-----------------------------------------------------------------"
 #"-----------"
) 0 0 31 29 1 #"\n"
0 0 31 3 11 #"3.1 Problem"
0 0 31 29 1 #"\n"
0 0 31 3 37 #"Start with the file soccer-team.java."
0 0 31 29 1 #"\n"
0 0 31 3 72
(
 #"You are given the class definition and some sample data for classes"
 #" that"
) 0 0 31 29 1 #"\n"
0 0 31 3 74
(
 #"represent information about a youth soccer league. The league keeps"
 #" a list"
) 0 0 31 29 1 #"\n"
0 0 31 3 76
(
 #"of teams as follows. Each team is represented by its captain, the t"
 #"eam name,"
) 0 0 31 29 1 #"\n"
0 0 31 3 76
(
 #"and a list of additional players on the team. The captain is also c"
 #"onsidered"
) 0 0 31 29 1 #"\n"
0 0 31 3 55 #"to be a player. We also record the age of every player."
0 0 31 29 1 #"\n"
0 0 31 3 2 #"  "
0 0 31 29 1 #"\n"
0 0 31 3 22 #"// CS U213 Spring 2009"
0 0 31 29 1 #"\n"
0 0 31 3 15 #"// Assignment 3"
0 0 31 29 1 #"\n"
0 0 31 3 14 #"// Problem 3.1"
0 0 31 29 1 #"\n"
0 0 31 3 18 #"// October 2, 2008"
0 0 31 29 1 #"\n"
0 0 31 29 1 #"\n"
0 0 31 3 5 #"/*   "
0 0 31 29 1 #"\n"
0 0 31 3 20 #"            +-------"
0 0 31 3 19 #"------------------+"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"            |   +----------------+    |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"            |   |                |    |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"            v   v                |    |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"         +---------+             |    |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"         | ILoP    |             |    |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"         +---------+             |    |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"             / \\                 |    |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"             ---                 |    |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"              |                  |    |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"      ---------------------      |    |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"      |                   |      |    |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"  +-------+   +---------------+  |    |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"  | MtLoP |   | ConsLoP       |  |    |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"  +-------+   +---------------+  |    |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"            +-| IPlayer first |  |    |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"            | | ILoP rest     |--+    |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"            | +---------------+       |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"            v                         |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"       +---------+                    |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"       | IPlayer |                    |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"       +---------+                    |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"           / \\                        |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"           ---                        |"
0 0 31 29 1 #"\n"
0 0 31 3 36 #"            |                       "
0 0 31 3 3 #"  |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"       ----------------------         |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"       |                    |         |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"  +-------------+   +--------------+  |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"  | Member      |   | Captain      |  |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"  +-------------+   +--------------+  |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"  | String name |   | String name  |  |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"  | int age     |   | int age      |  |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"  +-------------+   | String team  |  |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"                    | ILoP players |--+"
0 0 31 29 1 #"\n"
0 0 31 3 36 #"                    +--------------+"
0 0 31 29 1 #"\n"
0 0 31 3 2 #"*/"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 39 3 33 #"// to represent a list of players"
0 0 39 29 1 #"\n"
0 0 32 3 9 #"interface"
0 0 4 3 1 #" "
0 0 35 3 4 #"ILoP"
0 0 4 3 1 #" "
0 0 32 3 1 #"{"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 32 3 1 #"}"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 39 3 40 #"// to represent an empty list of players"
0 0 39 29 1 #"\n"
0 0 32 3 5 #"class"
0 0 4 3 1 #" "
0 0 35 3 5 #"MtLoP"
0 0 4 3 1 #" "
0 0 32 3 10 #"implements"
0 0 4 3 1 #" "
0 0 35 3 4 #"ILoP"
0 0 4 3 1 #" "
0 0 32 3 1 #"{"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 5 #"MtLoP"
0 0 32 3 2 #"()"
0 0 4 3 1 #" "
0 0 32 3 2 #"{}"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 32 3 1 #"}"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 39 3 33 #"// to represent a list of players"
0 0 39 29 1 #"\n"
0 0 32 3 5 #"class"
0 0 4 3 1 #" "
0 0 35 3 7 #"ConsLoP"
0 0 4 3 1 #" "
0 0 32 3 10 #"implements"
0 0 4 3 1 #" "
0 0 35 3 4 #"ILoP"
0 0 4 3 1 #" "
0 0 32 3 1 #"{"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 7 #"IPlayer"
0 0 4 3 1 #" "
0 0 35 3 5 #"first"
0 0 41 3 1 #";"
0 0 4 3 1 #" "
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 4 #"ILoP"
0 0 4 3 1 #" "
0 0 35 3 4 #"rest"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 7 #"ConsLoP"
0 0 32 3 1 #"("
0 0 35 3 7 #"IPlayer"
0 0 4 3 1 #" "
0 0 35 3 5 #"first"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 35 3 4 #"ILoP"
0 0 4 3 1 #" "
0 0 35 3 4 #"rest"
0 0 32 3 2 #"){"
0 0 4 29 1 #"\n"
0 0 4 3 4 #"    "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 5 #"first"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 35 3 5 #"first"
0 0 41 3 1 #";"
0 0 4 3 1 #" "
0 0 4 29 1 #"\n"
0 0 4 3 4 #"    "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 4 #"rest"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 35 3 4 #"rest"
0 0 41 3 1 #";"
0 0 4 3 1 #" "
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 32 3 1 #"}"
0 0 4 3 1 #" "
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 31 3 12 #"/* TEMPLATE:"
0 0 31 29 1 #"\n"
0 0 31 3 10 #"   FIELDS:"
0 0 31 29 1 #"\n"
0 0 31 3 45 #"    ... this.first ...             -- IPlayer"
0 0 31 29 1 #"\n"
0 0 31 3 42 #"    ... this.rest ...              -- ILoP"
0 0 31 29 1 #"\n"
0 0 31 29 1 #"\n"
0 0 31 3 12 #"    METHODS:"
0 0 31 29 1 #"\n"
0 0 31 3 40 #"    ... this.mmm() ...            -- ???"
0 0 31 29 1 #"\n"
0 0 31 29 1 #"\n"
0 0 31 3 23 #"    METHODS FOR FIELDS:"
0 0 31 29 1 #"\n"
0 0 31 3 25 #"    ... this.first.nnn() "
0 0 31 3 21 #"...             -- ??"
0 0 31 29 1 #"\n"
0 0 31 3 47 #"    ... this.rest.mmm() ...              -- ???"
0 0 31 29 1 #"\n"
0 0 31 3 2 #"*/"
0 0 4 29 1 #"\n"
0 0 32 3 1 #"}"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 39 3 54 #"// to represent a player or a captain on a soccer team"
0 0 39 29 1 #"\n"
0 0 32 3 9 #"interface"
0 0 4 3 1 #" "
0 0 35 3 7 #"IPlayer"
0 0 32 3 2 #"{}"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 39 3 41 #"// to represent a player on a soccer team"
0 0 39 29 1 #"\n"
0 0 32 3 5 #"class"
0 0 4 3 1 #" "
0 0 35 3 6 #"Member"
0 0 4 3 1 #" "
0 0 32 3 10 #"implements"
0 0 4 3 1 #" "
0 0 35 3 7 #"IPlayer"
0 0 32 3 1 #"{"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 34 3 6 #"String"
0 0 4 3 1 #" "
0 0 35 3 4 #"name"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 34 3 3 #"int"
0 0 4 3 1 #" "
0 0 35 3 3 #"age"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 6 #"Member"
0 0 32 3 1 #"("
0 0 34 3 6 #"String"
0 0 4 3 1 #" "
0 0 35 3 4 #"name"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 34 3 3 #"int"
0 0 4 3 1 #" "
0 0 35 3 3 #"age"
0 0 32 3 2 #"){"
0 0 4 29 1 #"\n"
0 0 4 3 4 #"    "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 4 #"name"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 35 3 4 #"name"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 4 #"    "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 3 #"age"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 35 3 3 #"age"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 32 3 1 #"}"
0 0 4 29 1 #"\n"
0 0 32 3 1 #"}"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 39 3 42 #"// to represent a captain on a soccer team"
0 0 39 29 1 #"\n"
0 0 32 3 5 #"class"
0 0 4 3 1 #" "
0 0 35 3 7 #"Captain"
0 0 4 3 1 #" "
0 0 32 3 10 #"implements"
0 0 4 3 1 #" "
0 0 35 3 7 #"IPlayer"
0 0 32 3 1 #"{"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 34 3 6 #"String"
0 0 4 3 1 #" "
0 0 35 3 4 #"name"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 34 3 3 #"int"
0 0 4 3 1 #" "
0 0 35 3 3 #"age"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 34 3 6 #"String"
0 0 4 3 1 #" "
0 0 35 3 4 #"team"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 4 #"ILoP"
0 0 4 3 1 #" "
0 0 35 3 7 #"players"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 7 #"Captain"
0 0 32 3 1 #"("
0 0 34 3 6 #"String"
0 0 4 3 1 #" "
0 0 35 3 4 #"name"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 34 3 3 #"int"
0 0 4 3 1 #" "
0 0 35 3 3 #"age"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 34 3 6 #"String"
0 0 4 3 1 #" "
0 0 35 3 4 #"team"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 35 3 4 #"ILoP"
0 0 4 3 1 #" "
0 0 35 3 7 #"players"
0 0 32 3 2 #"){"
0 0 4 29 1 #"\n"
0 0 4 3 4 #"    "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 4 #"name"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 35 3 4 #"name"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 4 #"    "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 3 #"age"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 35 3 3 #"age"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 4 #"    "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 4 #"team"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 35 3 4 #"team"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 4 #"    "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 7 #"players"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 35 3 7 #"players"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 32 3 1 #"}"
0 0 4 3 1 #" "
0 0 4 29 1 #"\n"
0 0 32 3 1 #"}"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 39 3 60
#"// examples of soccer leagues data and tests for the methods"
0 0 39 29 1 #"\n"
0 0 32 3 5 #"class"
0 0 4 3 1 #" "
0 0 35 3 8 #"Examples"
0 0 32 3 1 #"{"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 8 #"Examples"
0 0 32 3 4 #"(){}"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 4 #"ILoP"
0 0 4 3 1 #" "
0 0 35 3 5 #"mtlop"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 5 #"MtLoP"
0 0 32 3 2 #"()"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 39 3 43 #"// players -- team members of the team Real"
0 0 39 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 7 #"IPlayer"
0 0 4 3 1 #" "
0 0 35 3 4 #"tony"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 6 #"Member"
0 0 32 3 1 #"("
0 0 37 3 6 #"\"Tony\""
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 38 3 2 #"19"
0 0 32 3 1 #")"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 7 #"IPlayer"
0 0 4 3 1 #" "
0 0 35 3 4 #"joey"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 6 #"Member"
0 0 32 3 1 #"("
0 0 37 3 6 #"\"Joey\""
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 38 3 2 #"21"
0 0 32 3 1 #")"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 7 #"IPlayer"
0 0 4 3 1 #" "
0 0 35 3 4 #"pete"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 6 #"Member"
0 0 32 3 1 #"("
0 0 37 3 6 #"\"Pete\""
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 38 3 2 #"18"
0 0 32 3 1 #")"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 7 #"IPlayer"
0 0 4 3 1 #" "
0 0 35 3 4 #"jake"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 6 #"Member"
0 0 32 3 1 #"("
0 0 37 3 6 #"\"Jake\""
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 38 3 2 #"18"
0 0 32 3 1 #")"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 39 3 34 #"// list of player on the team Real"
0 0 39 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 4 #"ILoP"
0 0 4 3 1 #" "
0 0 35 3 8 #"realTeam"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 7 #"ConsLoP"
0 0 32 3 5 #"(this"
0 0 41 3 1 #"."
0 0 35 3 4 #"tony"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 4 29 1 #"\n"
0 0 4 3 19 #"                   "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 7 #"ConsLoP"
0 0 32 3 5 #"(this"
0 0 41 3 1 #"."
0 0 35 3 4 #"joey"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 4 29 1 #"\n"
0 0 4 3 20 #"                    "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 7 #"ConsLoP"
0 0 32 3 5 #"(this"
0 0 41 3 1 #"."
0 0 35 3 4 #"pete"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 4 29 1 #"\n"
0 0 4 3 21 #"                     "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 7 #"ConsLoP"
0 0 32 3 5 #"(this"
0 0 41 3 1 #"."
0 0 35 3 4 #"jake"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 5 #"mtlop"
0 0 32 3 4 #"))))"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 39 3 44 #"// players -- team members of the team Sting"
0 0 39 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 7 #"IPlayer"
0 0 4 3 1 #" "
0 0 35 3 5 #"jenny"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 6 #"Member"
0 0 32 3 1 #"("
0 0 37 3 7 #"\"Jenny\""
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 38 3 2 #"19"
0 0 32 3 1 #")"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 7 #"IPlayer"
0 0 4 3 1 #" "
0 0 35 3 5 #"chris"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 6 #"Member"
0 0 32 3 1 #"("
0 0 37 3 7 #"\"Chris\""
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 38 3 2 #"20"
0 0 32 3 1 #")"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 7 #"IPlayer"
0 0 4 3 1 #" "
0 0 35 3 5 #"kerry"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 6 #"Member"
0 0 32 3 1 #"("
0 0 37 3 7 #"\"Kerry\""
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 38 3 2 #"22"
0 0 32 3 1 #")"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 7 #"IPlayer"
0 0 4 3 1 #" "
0 0 35 3 5 #"sasha"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 6 #"Member"
0 0 32 3 1 #"("
0 0 37 3 7 #"\"Sasha\""
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 38 3 2 #"17"
0 0 32 3 1 #")"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 39 3 35 #"// list of player on the team Sting"
0 0 39 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 4 #"ILoP"
0 0 4 3 1 #" "
0 0 35 3 9 #"stingTeam"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 7 #"ConsLoP"
0 0 32 3 5 #"(this"
0 0 41 3 1 #"."
0 0 35 3 5 #"jenny"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 4 29 1 #"\n"
0 0 4 3 20 #"                    "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 7 #"ConsLoP"
0 0 32 3 5 #"(this"
0 0 41 3 1 #"."
0 0 35 3 5 #"chris"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 4 29 1 #"\n"
0 0 4 3 21 #"                     "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 7 #"ConsLoP"
0 0 32 3 5 #"(this"
0 0 41 3 1 #"."
0 0 35 3 5 #"kerry"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 4 29 1 #"\n"
0 0 4 3 22 #"                      "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 7 #"ConsLoP"
0 0 32 3 5 #"(this"
0 0 41 3 1 #"."
0 0 35 3 5 #"sasha"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 5 #"mtlop"
0 0 32 3 4 #"))))"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 21 #"                     "
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 39 3 42 #"// players -- team members of the team Rex"
0 0 39 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 7 #"IPlayer"
0 0 4 3 1 #" "
0 0 35 3 3 #"kim"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 6 #"Member"
0 0 32 3 1 #"("
0 0 37 3 5 #"\"Kim\""
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 38 3 2 #"19"
0 0 32 3 1 #")"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 7 #"IPlayer"
0 0 4 3 1 #" "
0 0 35 3 3 #"jan"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 6 #"Member"
0 0 32 3 1 #"("
0 0 37 3 5 #"\"Jan\""
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 38 3 2 #"18"
0 0 32 3 1 #")"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 7 #"IPlayer"
0 0 4 3 1 #" "
0 0 35 3 3 #"cas"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 6 #"Member"
0 0 32 3 1 #"("
0 0 37 3 5 #"\"Cas\""
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 38 3 2 #"21"
0 0 32 3 1 #")"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 7 #"IPlayer"
0 0 4 3 1 #" "
0 0 35 3 3 #"tim"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 6 #"Member"
0 0 32 3 1 #"("
0 0 37 3 5 #"\"Tim\""
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 38 3 2 #"17"
0 0 32 3 1 #")"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 39 3 33 #"// list of player on the team Rex"
0 0 39 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 4 #"ILoP"
0 0 4 3 1 #" "
0 0 35 3 7 #"rexTeam"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 7 #"ConsLoP"
0 0 32 3 5 #"(this"
0 0 41 3 1 #"."
0 0 35 3 3 #"kim"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 4 29 1 #"\n"
0 0 4 3 18 #"                  "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 7 #"ConsLoP"
0 0 32 3 5 #"(this"
0 0 41 3 1 #"."
0 0 35 3 3 #"jan"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 4 29 1 #"\n"
0 0 4 3 19 #"                   "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 7 #"ConsLoP"
0 0 32 3 5 #"(this"
0 0 41 3 1 #"."
0 0 35 3 3 #"cas"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 4 29 1 #"\n"
0 0 4 3 20 #"                    "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 7 #"ConsLoP"
0 0 32 3 5 #"(this"
0 0 41 3 1 #"."
0 0 35 3 3 #"tim"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 5 #"mtlop"
0 0 32 3 4 #"))))"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 39 3 11 #"// captains"
0 0 39 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 7 #"IPlayer"
0 0 4 3 1 #" "
0 0 35 3 4 #"alex"
0 0 4 3 2 #"  "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 7 #"Captain"
0 0 32 3 1 #"("
0 0 37 3 6 #"\"Alex\""
0 0 41 3 1 #","
0 0 4 3 2 #"  "
0 0 38 3 2 #"20"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 37 3 6 #"\"Real\""
0 0 41 3 1 #","
0 0 4 3 2 #"  "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 8 #"realTeam"
0 0 32 3 1 #")"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 7 #"IPlayer"
0 0 4 3 1 #" "
0 0 35 3 5 #"ramon"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 7 #"Captain"
0 0 32 3 1 #"("
0 0 37 3 7 #"\"Ramon\""
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 38 3 2 #"20"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 37 3 7 #"\"Sting\""
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 9 #"stingTeam"
0 0 32 3 1 #")"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 7 #"IPlayer"
0 0 4 3 1 #" "
0 0 35 3 3 #"pat"
0 0 4 3 3 #"   "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 7 #"Captain"
0 0 32 3 1 #"("
0 0 37 3 5 #"\"Pat\""
0 0 41 3 1 #","
0 0 4 3 3 #"   "
0 0 38 3 2 #"20"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 37 3 5 #"\"Rex\""
0 0 41 3 1 #","
0 0 4 3 3 #"   "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 7 #"rexTeam"
0 0 32 3 1 #")"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 4 #"ILoP"
0 0 4 3 1 #" "
0 0 35 3 6 #"league"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 7 #"ConsLoP"
0 0 32 3 5 #"(this"
0 0 41 3 1 #"."
0 0 35 3 4 #"alex"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 4 29 1 #"\n"
0 0 4 3 17 #"                 "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 7 #"ConsLoP"
0 0 32 3 5 #"(this"
0 0 41 3 1 #"."
0 0 35 3 5 #"ramon"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 4 29 1 #"\n"
0 0 4 3 18 #"                  "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 7 #"ConsLoP"
0 0 32 3 5 #"(this"
0 0 41 3 1 #"."
0 0 35 3 3 #"pat"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 5 #"mtlop"
0 0 32 3 3 #")))"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 32 3 1 #"}"
0 0 4 29 1 #"\n"
0 0 31 3 2 #"/*"
0 0 31 29 1 #"\n"
0 0 31 3 71
(
 #"A. Write down on a paper the names of all teams, for each team list"
 #" its"
) 0 0 31 29 1 #"\n"
0 0 31 3 69
#"players, and the name of its captain. Submit this as a comment at the"
0 0 31 29 1 #"\n"
0 0 31 3 27 #"end of your Examples class."
0 0 31 29 1 #"\n"
0 0 31 3 2 #"  "
0 0 31 29 1 #"\n"
0 0 31 3 69
#"B. Design the method count that counts the total number of players in"
0 0 31 29 1 #"\n"
0 0 31 3 69
#"this league. Design the templates as you go along. (We will grade the"
0 0 31 29 1 #"\n"
0 0 31 3 11 #"templates!)"
0 0 31 29 1 #"\n"
0 0 31 29 1 #"\n"
0 0 31 3 72
(
 #"C. Design the method listAll that produces a list of all players in"
 #" this"
) 0 0 31 29 1 #"\n"
0 0 31 3 9 #"league.  "
0 0 31 29 1 #"\n"
0 0 31 3 2 #"*/"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 31 3 2 #"/*"
0 0 31 29 1 #"\n"
0 0 31 3 25 #"//-----------------------"
0 0 31 3 53 #"-----------------------------------------------------"
0 0 31 29 1 #"\n"
0 0 31 3 78
(
 #"//-----------------------------------------------------------------"
 #"-----------"
) 0 0 31 29 1 #"\n"
0 0 31 3 11 #"3.2 Problem"
0 0 31 29 1 #"\n"
0 0 31 3 70
(
 #"You are trying to organize the file directories on your computer. Y"
 #"our"
) 0 0 31 29 1 #"\n"
0 0 31 3 71
(
 #"friend gave you a start by designing the data definitions given in "
 #"the "
) 0 0 31 29 1 #"\n"
0 0 31 3 68
#"filesdirectories.java file. She even gave you some examples of data."
0 0 31 29 1 #"\n"
0 0 31 3 2 #"  "
0 0 31 29 1 #"\n"
0 0 31 3 15 #"// Assignment 3"
0 0 31 29 1 #"\n"
0 0 31 3 14 #"// Problem 3.2"
0 0 31 29 1 #"\n"
0 0 31 3 22 #"// CS U213 Spring 2009"
0 0 31 29 1 #"\n"
0 0 31 3 25 #"// files-directories.java"
0 0 31 29 1 #"\n"
0 0 31 29 1 #"\n"
0 0 31 3 2 #"/*"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"             +-----------------------+"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"             |  +-----------------+  |"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"             |  |                 |  |"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"             v  v                 |  |"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"         +-------+                |  |"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"         | ILoFD |                |  |"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"         +-------+                |  |"
0 0 31 29 1 #"\n"
0 0 31 3 39 #"            / \\                   |  | "
0 0 31 29 1 #"\n"
0 0 31 3 38 #"            ---                   |  |"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"             |                    |  |"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"      ---------------             |  |"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"      |             |             |  |"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"  +--------+  +------------+      |  |"
0 0 31 29 1 #"\n"
0 0 31 3 22 #"  | MtLoFD |  | ConsLo"
0 0 31 3 16 #"FD   |      |  |"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"  +--------+  +------------+      |  |"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"            +-| IFD first  |      |  |"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"            | | ILoFD rest |------+  |"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"            | +------------+         |"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"            |                        |"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"            v                        |"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"           +-------+                 |"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"           | IFD   |                 |"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"           +-------+                 |"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"               / \\                   |"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"               ---                   |"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"                |                    |"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"        -------------------          |"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"        |                 |          |"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"  +-------------+  +--------------+  |"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"  | File        |  | Directory    |  |"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"  +-------------+  +--------------+  |"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"  | String name |  | String name  |  |"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"  | int size    |  | ILoFD fdlist |--+"
0 0 31 29 1 #"\n"
0 0 31 3 37 #"  | String kind |  +--------------+  "
0 0 31 29 1 #"\n"
0 0 31 3 18 #"  +-------------+ "
0 0 31 29 1 #"\n"
0 0 31 3 2 #"*/"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 39 3 73
(
 #"// to represent a list of files and directories in a computer file "
 #"system"
) 0 0 39 29 1 #"\n"
0 0 32 3 9 #"interface"
0 0 4 3 1 #" "
0 0 35 3 5 #"ILoFD"
0 0 32 3 1 #"{"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 4 29 1 #"\n"
0 0 32 3 1 #"}"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 39 3 53 #"// to represent an empty list of files and directorie"
0 0 39 3 27 #"s in a computer file system"
0 0 39 29 1 #"\n"
0 0 32 3 5 #"class"
0 0 4 3 1 #" "
0 0 35 3 6 #"MtLoFD"
0 0 4 3 1 #" "
0 0 32 3 10 #"implements"
0 0 4 3 1 #" "
0 0 35 3 5 #"ILoFD"
0 0 32 3 1 #"{"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 6 #"MtLoFD"
0 0 32 3 4 #"(){}"
0 0 4 3 2 #"  "
0 0 4 29 1 #"\n"
0 0 32 3 1 #"}"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 39 3 73
(
 #"// to represent a nonempty list of files and directories in a file "
 #"system"
) 0 0 39 29 1 #"\n"
0 0 32 3 5 #"class"
0 0 4 3 1 #" "
0 0 35 3 8 #"ConsLoFD"
0 0 4 3 1 #" "
0 0 32 3 10 #"implements"
0 0 4 3 1 #" "
0 0 35 3 5 #"ILoFD"
0 0 32 3 1 #"{"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 3 #"IFD"
0 0 4 3 1 #" "
0 0 35 3 5 #"first"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 5 #"ILoFD"
0 0 4 3 1 #" "
0 0 35 3 4 #"rest"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 8 #"ConsLoFD"
0 0 32 3 1 #"("
0 0 35 3 3 #"IFD"
0 0 4 3 1 #" "
0 0 35 3 5 #"first"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 35 3 5 #"ILoFD"
0 0 4 3 1 #" "
0 0 35 3 4 #"rest"
0 0 32 3 2 #"){"
0 0 4 29 1 #"\n"
0 0 4 3 4 #"    "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 5 #"first"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 35 3 5 #"first"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 4 #"    "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 4 #"rest"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 35 3 4 #"rest"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 32 3 1 #"}"
0 0 4 3 2 #"  "
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 32 3 1 #"}"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 39 3 63
#"// to represent files and directories in a computer file system"
0 0 39 29 1 #"\n"
0 0 32 3 9 #"interface"
0 0 4 3 1 #" "
0 0 35 3 3 #"IFD"
0 0 32 3 1 #"{"
0 0 4 29 1 #"\n"
0 0 32 3 1 #"}"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 39 3 47 #"// to represent files in a computer file system"
0 0 39 29 1 #"\n"
0 0 32 3 5 #"class"
0 0 4 3 1 #" "
0 0 35 3 4 #"File"
0 0 4 3 1 #" "
0 0 32 3 10 #"implements"
0 0 4 3 1 #" "
0 0 35 3 3 #"IFD"
0 0 32 3 1 #"{"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 34 3 6 #"String"
0 0 4 3 1 #" "
0 0 35 3 4 #"name"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 34 3 3 #"int"
0 0 4 3 1 #" "
0 0 35 3 4 #"size"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 34 3 6 #"String"
0 0 4 3 1 #" "
0 0 35 3 4 #"kind"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 4 #"File"
0 0 32 3 1 #"("
0 0 34 3 6 #"String"
0 0 4 3 1 #" "
0 0 35 3 4 #"name"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 34 3 3 #"int"
0 0 4 3 1 #" "
0 0 35 3 4 #"size"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 34 3 6 #"String"
0 0 4 3 1 #" "
0 0 35 3 4 #"kind"
0 0 32 3 2 #"){"
0 0 4 29 1 #"\n"
0 0 4 3 4 #"    "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 4 #"name"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 35 3 4 #"name"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 4 #"    "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 4 #"size"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 35 3 4 #"size"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 4 #"    "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 4 #"kind"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 35 3 4 #"kind"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 32 3 1 #"}"
0 0 4 29 1 #"\n"
0 0 32 3 1 #"}"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 39 3 53 #"// to represent a directory in a computer file system"
0 0 39 29 1 #"\n"
0 0 32 3 5 #"class"
0 0 4 3 1 #" "
0 0 35 3 9 #"Directory"
0 0 4 3 1 #" "
0 0 32 3 10 #"implements"
0 0 4 3 1 #" "
0 0 35 3 3 #"IFD"
0 0 32 3 1 #"{"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 34 3 6 #"String"
0 0 4 3 1 #" "
0 0 35 3 4 #"name"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 5 #"ILoFD"
0 0 4 3 1 #" "
0 0 35 3 6 #"fdlist"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 9 #"Directory"
0 0 32 3 1 #"("
0 0 34 3 6 #"String"
0 0 4 3 1 #" "
0 0 35 3 4 #"name"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 35 3 5 #"ILoFD"
0 0 4 3 1 #" "
0 0 35 3 6 #"fdlist"
0 0 32 3 2 #"){"
0 0 4 29 1 #"\n"
0 0 4 3 4 #"    "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 4 #"name"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 35 3 4 #"name"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 4 #"    "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 6 #"fdlist"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 35 3 6 #"fdlist"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 32 3 1 #"}"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 32 3 1 #"}"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 4 29 1 #"\n"
0 0 39 3 72
(
 #"// Examples and tests for the class hierarchy for a computer file s"
 #"ystem"
) 0 0 39 29 1 #"\n"
0 0 32 3 5 #"class"
0 0 4 3 1 #" "
0 0 35 3 8 #"Examples"
0 0 32 3 1 #"{"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 8 #"Examples"
0 0 32 3 4 #"(){}"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 31 3 2 #"/*"
0 0 31 29 1 #"\n"
0 0 31 3 11 #"    Home:  "
0 0 31 29 1 #"\n"
0 0 31 3 16 #"          Docs: "
0 0 31 29 1 #"\n"
0 0 31 3 27 #"                      text1"
0 0 31 29 1 #"\n"
0 0 31 3 27 #"                      text2"
0 0 31 29 1 #"\n"
0 0 31 3 20 #"          Pictures: "
0 0 31 29 1 #"\n"
0 0 31 3 26 #"                      pic1"
0 0 31 29 1 #"\n"
0 0 31 3 34 #"                      Archives:   "
0 0 31 29 1 #"\n"
0 0 31 3 38 #"                                  pic2"
0 0 31 29 1 #"\n"
0 0 31 3 38 #"                                  pic3"
0 0 31 29 1 #"\n"
0 0 31 3 4 #"  */"
0 0 4 29 1 #"\n"
0 0 4 3 4 #"    "
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 3 #"IFD"
0 0 4 3 1 #" "
0 0 35 3 4 #"pic1"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 4 #"File"
0 0 32 3 1 #"("
0 0 37 3 7 #"\"party\""
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 38 3 4 #"6000"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 37 3 6 #"\"jpeg\""
0 0 32 3 1 #")"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 3 #"IFD"
0 0 4 3 1 #" "
0 0 35 3 4 #"pic2"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 4 #"File"
0 0 32 3 1 #"("
0 0 37 3 7 #"\"beach\""
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 38 3 4 #"3500"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 37 3 6 #"\"jpeg\""
0 0 32 3 1 #")"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 3 #"IFD"
0 0 4 3 1 #" "
0 0 35 3 4 #"pic3"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 4 #"File"
0 0 32 3 1 #"("
0 0 37 3 7 #"\"river\""
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 38 3 4 #"2900"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 37 3 6 #"\"jpeg\""
0 0 32 3 1 #")"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 3 #"IFD"
0 0 4 3 1 #" "
0 0 35 3 5 #"text1"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 4 #"File"
0 0 32 3 1 #"("
0 0 37 3 8 #"\"letter\""
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 38 3 3 #"600"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 37 3 5 #"\"txt\""
0 0 32 3 1 #")"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 3 #"IFD"
0 0 4 3 1 #" "
0 0 35 3 5 #"text2"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 4 #"File"
0 0 32 3 1 #"("
0 0 37 3 6 #"\"memo\""
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 38 3 3 #"500"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 37 3 5 #"\"txt\""
0 0 32 3 1 #")"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 5 #"ILoFD"
0 0 4 3 1 #" "
0 0 35 3 6 #"mtlofd"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 6 #"MtLoFD"
0 0 32 3 2 #"()"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 5 #"ILoFD"
0 0 4 3 1 #" "
0 0 35 3 8 #"archList"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 4 29 1 #"\n"
0 0 4 3 4 #"    "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 8 #"ConsLoFD"
0 0 32 3 5 #"(this"
0 0 41 3 1 #"."
0 0 35 3 4 #"pic2"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 8 #"ConsLoFD"
0 0 32 3 5 #"(this"
0 0 41 3 1 #"."
0 0 35 3 4 #"pic3"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 6 #"mtlofd"
0 0 32 3 2 #"))"
0 0 41 3 1 #";"
0 0 4 3 4 #"    "
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 3 #"IFD"
0 0 4 3 1 #" "
0 0 35 3 8 #"archives"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 9 #"Directory"
0 0 32 3 1 #"("
0 0 37 3 10 #"\"Archives\""
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 8 #"archList"
0 0 32 3 1 #")"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 5 #"ILoFD"
0 0 4 3 1 #" "
0 0 35 3 7 #"picList"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 8 #"ConsLoFD"
0 0 32 3 5 #"(this"
0 0 41 3 1 #"."
0 0 35 3 4 #"pic1"
0 0 41 3 1 #","
0 0 4 29 1 #"\n"
0 0 4 3 20 #"                    "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 8 #"ConsLoFD"
0 0 32 3 5 #"(this"
0 0 41 3 1 #"."
0 0 35 3 8 #"archives"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 6 #"mtlofd"
0 0 32 3 2 #"))"
0 0 41 3 1 #";"
0 0 4 3 1 #" "
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 3 #"IFD"
0 0 4 3 1 #" "
0 0 35 3 8 #"pictures"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 9 #"Directory"
0 0 32 3 1 #"("
0 0 37 3 10 #"\"Pictures\""
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 7 #"picList"
0 0 32 3 1 #")"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 19 #"                   "
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 5 #"ILoFD"
0 0 4 3 1 #" "
0 0 35 3 7 #"docList"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 8 #"ConsLoFD"
0 0 32 3 5 #"(this"
0 0 41 3 1 #"."
0 0 35 3 5 #"text1"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 4 29 1 #"\n"
0 0 4 3 20 #"                    "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 8 #"ConsLoFD"
0 0 32 3 5 #"(this"
0 0 41 3 1 #"."
0 0 35 3 5 #"text2"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 6 #"mtlofd"
0 0 32 3 2 #"))"
0 0 41 3 1 #";"
0 0 4 3 40 #"                                        "
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 3 #"IFD"
0 0 4 3 1 #" "
0 0 35 3 4 #"docs"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 9 #"Directory"
0 0 32 3 1 #"("
0 0 37 3 6 #"\"Docs\""
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 7 #"docList"
0 0 32 3 1 #")"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 5 #"ILoFD"
0 0 4 3 1 #" "
0 0 35 3 8 #"homeList"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 8 #"ConsLoFD"
0 0 32 3 5 #"(this"
0 0 41 3 1 #"."
0 0 35 3 4 #"docs"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 4 29 1 #"\n"
0 0 4 3 21 #"                     "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 8 #"ConsLoFD"
0 0 32 3 5 #"(this"
0 0 41 3 1 #"."
0 0 35 3 8 #"pictures"
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 6 #"mtlofd"
0 0 32 3 2 #"))"
0 0 41 3 1 #";"
0 0 4 3 40 #"                                        "
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 35 3 3 #"IFD"
0 0 4 3 1 #" "
0 0 35 3 4 #"home"
0 0 4 3 1 #" "
0 0 32 3 1 #"="
0 0 4 3 1 #" "
0 0 32 3 3 #"new"
0 0 4 3 1 #" "
0 0 35 3 9 #"Directory"
0 0 32 3 1 #"("
0 0 37 3 6 #"\"Home\""
0 0 41 3 1 #","
0 0 4 3 1 #" "
0 0 32 3 4 #"this"
0 0 41 3 1 #"."
0 0 35 3 8 #"homeList"
0 0 32 3 1 #")"
0 0 41 3 1 #";"
0 0 4 29 1 #"\n"
0 0 32 3 1 #"}"
0 0 4 29 1 #"\n"
0 0 4 3 2 #"  "
0 0 4 29 1 #"\n"
0 0 31 3 1 #"/"
0 0 31 3 1 #"*"
0 0 31 29 1 #"\n"
0 0 31 3 2 #"  "
0 0 31 3 1 #"A"
0 0 31 3 1 #"."
0 0 31 3 1 #" "
0 0 31 3 4 #"Make"
0 0 31 3 1 #" "
0 0 31 3 2 #"an"
0 0 31 3 1 #" "
0 0 31 3 10 #"additional"
0 0 31 3 1 #" "
0 0 31 3 7 #"example"
0 0 31 3 1 #"("
0 0 31 3 1 #"s"
0 0 31 3 1 #")"
0 0 31 3 1 #" "
0 0 31 3 2 #"of"
0 0 31 3 1 #" "
0 0 31 3 4 #"data"
0 0 31 3 1 #" "
0 0 31 3 4 #"that"
0 0 31 3 1 #" "
0 0 31 3 6 #"allows"
0 0 31 3 1 #" "
0 0 31 3 2 #"us"
0 0 31 3 1 #" "
0 0 31 3 2 #"to"
0 0 31 3 1 #" "
0 0 31 3 9 #"represent"
0 0 31 3 1 #" "
0 0 31 3 3 #"the"
0 0 31 29 1 #"\n"
0 0 31 3 9 #"following"
0 0 31 3 1 #" "
0 0 31 3 9 #"directory"
0 0 31 3 1 #" "
0 0 31 3 3 #"and"
0 0 31 3 1 #" "
0 0 31 3 3 #"its"
0 0 31 3 1 #" "
0 0 31 3 8 #"contents"
0 0 31 3 1 #":"
0 0 31 29 1 #"\n"
0 0 31 3 9 #"Directory"
0 0 31 3 1 #" "
0 0 31 3 5 #"Pages"
0 0 31 29 1 #"\n"
0 0 31 3 8 #"contains"
0 0 31 3 1 #" "
0 0 31 3 3 #"the"
0 0 31 3 1 #" "
0 0 31 3 9 #"following"
0 0 31 3 1 #":"
0 0 31 3 1 #" "
0 0 31 3 4 #"file"
0 0 31 3 1 #" "
0 0 31 3 5 #"index"
0 0 31 3 1 #"."
0 0 31 3 4 #"html"
0 0 31 29 1 #"\n"
0 0 31 3 4 #"file"
0 0 31 3 1 #" "
0 0 31 3 8 #"pictures"
0 0 31 3 1 #"."
0 0 31 3 4 #"html"
0 0 31 29 1 #"\n"
0 0 31 3 9 #"directory"
0 0 31 3 1 #" "
0 0 31 3 8 #"Pictures"
0 0 31 29 1 #"\n"
0 0 31 3 9 #"directory"
0 0 31 3 1 #" "
0 0 31 3 10 #"Quotations"
0 0 31 29 1 #"\n"
0 0 31 3 9 #"Directory"
0 0 31 3 1 #" "
0 0 31 3 8 #"Pictures"
0 0 31 29 1 #"\n"
0 0 31 3 9 #"conatains"
0 0 31 3 1 #" "
0 0 31 3 3 #"the"
0 0 31 3 1 #" "
0 0 31 3 5 #"files"
0 0 31 3 1 #":"
0 0 31 3 1 #" "
0 0 31 3 4 #"home"
0 0 31 3 1 #"."
0 0 31 3 4 #"jpeg"
0 0 31 3 1 #","
0 0 31 29 1 #"\n"
0 0 31 3 6 #"friend"
0 0 31 3 1 #"."
0 0 31 3 4 #"jpeg"
0 0 31 3 1 #"."
0 0 31 29 1 #"\n"
0 0 31 3 7 #"brother"
0 0 31 3 1 #"."
0 0 31 3 4 #"jpeg"
0 0 31 29 1 #"\n"
0 0 31 3 9 #"Directory"
0 0 31 3 1 #" "
0 0 31 3 10 #"Quotations"
0 0 31 3 1 #" "
0 0 31 3 8 #"contains"
0 0 31 3 1 #" "
0 0 31 3 5 #"files"
0 0 31 3 1 #":"
0 0 31 3 1 #" "
0 0 31 3 5 #"twain"
0 0 31 3 1 #"."
0 0 31 3 3 #"txt"
0 0 31 3 1 #","
0 0 31 29 1 #"\n"
0 0 31 3 9 #"cervantes"
0 0 31 3 1 #"."
0 0 31 3 3 #"txt"
0 0 31 29 1 #"\n"
0 0 31 3 6 #"Choose"
0 0 31 3 1 #" "
0 0 31 3 3 #"any"
0 0 31 3 1 #" "
0 0 31 3 5 #"sizes"
0 0 31 3 1 #" "
0 0 31 3 3 #"for"
0 0 31 3 1 #" "
0 0 31 3 5 #"these"
0 0 31 3 1 #" "
0 0 31 3 5 #"files"
0 0 31 3 1 #"."
0 0 31 3 1 #" "
0 0 31 3 6 #"Assume"
0 0 31 3 1 #" "
0 0 31 3 3 #"the"
0 0 31 3 1 #" "
0 0 31 3 5 #"sizes"
0 0 31 3 1 #" "
0 0 31 3 3 #"are"
0 0 31 3 1 #" "
0 0 31 3 5 #"given"
0 0 31 3 1 #" "
0 0 31 3 2 #"in"
0 0 31 3 1 #" "
0 0 31 3 4 #"kilo"
0 0 31 3 1 #"-"
0 0 31 29 1 #"\n"
0 0 31 3 5 #"Bytes"
0 0 31 3 1 #"."
0 0 31 29 1 #"\n"
0 0 31 29 1 #"\n"
0 0 31 3 2 #"  "
0 0 31 3 1 #"B"
0 0 31 3 1 #"."
0 0 31 3 1 #" "
0 0 31 3 6 #"Design"
0 0 31 3 1 #" "
0 0 31 3 3 #"the"
0 0 31 3 1 #" "
0 0 31 3 6 #"method"
0 0 31 3 1 #" "
0 0 31 3 9 #"totalSize"
0 0 31 3 1 #" "
0 0 31 3 4 #"that"
0 0 31 3 1 #" "
0 0 31 3 8 #"computes"
0 0 31 3 1 #" "
0 0 31 3 3 #"the"
0 0 31 3 1 #" "
0 0 31 3 4 #"size"
0 0 31 3 1 #" "
0 0 31 3 2 #"of"
0 0 31 3 1 #" "
0 0 31 3 3 #"the"
0 0 31 3 1 #" "
0 0 31 3 9 #"directory"
0 0 31 29 1 #"\n"
0 0 31 3 2 #"by"
0 0 31 3 1 #" "
0 0 31 3 6 #"adding"
0 0 31 3 1 #" "
0 0 31 3 3 #"the"
0 0 31 3 1 #" "
0 0 31 3 5 #"sizes"
0 0 31 3 1 #" "
0 0 31 3 2 #"of"
0 0 31 3 1 #" "
0 0 31 3 3 #"all"
0 0 31 3 1 #" "
0 0 31 3 5 #"files"
0 0 31 3 1 #" "
0 0 31 3 2 #"in"
0 0 31 3 1 #" "
0 0 31 3 2 #"it"
0 0 31 3 1 #"."
0 0 31 3 1 #" "
0 0 31 3 12 #"Additionally"
0 0 31 3 1 #","
0 0 31 3 1 #" "
0 0 31 3 5 #"every"
0 0 31 3 1 #" "
0 0 31 3 9 #"directory"
0 0 31 29 1 #"\n"
0 0 31 3 5 #"needs"
0 0 31 3 1 #" "
0 0 31 3 1 #"4"
0 0 31 3 1 #" "
0 0 31 3 9 #"kiloBytes"
0 0 31 3 1 #" "
0 0 31 3 3 #"for"
0 0 31 3 1 #" "
0 0 31 3 7 #"keeping"
0 0 31 3 1 #" "
0 0 31 3 5 #"track"
0 0 31 3 1 #" "
0 0 31 3 2 #"of"
0 0 31 3 1 #" "
0 0 31 3 3 #"its"
0 0 31 3 1 #" "
0 0 31 3 4 #"list"
0 0 31 3 1 #" "
0 0 31 3 2 #"of"
0 0 31 3 1 #" "
0 0 31 3 5 #"files"
0 0 31 3 1 #" "
0 0 31 3 3 #"and"
0 0 31 3 1 #" "
0 0 31 3 14 #"subdirectories"
0 0 31 3 1 #"."
0 0 31 29 1 #"\n"
0 0 31 29 1 #"\n"
0 0 31 3 2 #"  "
0 0 31 3 1 #"C"
0 0 31 3 1 #"."
0 0 31 3 1 #" "
0 0 31 3 6 #"Design"
0 0 31 3 1 #" "
0 0 31 3 3 #"the"
0 0 31 3 1 #" "
0 0 31 3 6 #"method"
0 0 31 3 1 #" "
0 0 31 3 8 #"allFiles"
0 0 31 3 1 #" "
0 0 31 3 4 #"that"
0 0 31 3 1 #" "
0 0 31 3 8 #"produces"
0 0 31 3 1 #" "
0 0 31 3 1 #"a"
0 0 31 3 1 #" "
0 0 31 3 4 #"list"
0 0 31 3 1 #" "
0 0 31 3 2 #"of"
0 0 31 3 1 #" "
0 0 31 3 3 #"all"
0 0 31 3 1 #" "
0 0 31 3 5 #"files"
0 0 31 3 1 #" "
0 0 31 3 2 #"of"
0 0 31 3 1 #" "
0 0 31 3 3 #"the"
0 0 31 29 1 #"\n"
0 0 31 3 5 #"given"
0 0 31 3 1 #" "
0 0 31 3 4 #"kind"
0 0 31 3 1 #" "
0 0 31 3 2 #"in"
0 0 31 3 1 #" "
0 0 31 3 3 #"the"
0 0 31 3 1 #" "
0 0 31 3 9 #"directory"
0 0 31 3 1 #" "
0 0 31 3 1 #"("
0 0 31 3 3 #"and"
0 0 31 3 1 #" "
0 0 31 3 3 #"the"
0 0 31 3 1 #" "
0 0 31 3 5 #"names"
0 0 31 3 1 #" "
0 0 31 3 2 #"of"
0 0 31 3 1 #" "
0 0 31 3 3 #"all"
0 0 31 3 1 #" "
0 0 31 3 5 #"files"
0 0 31 3 1 #" "
0 0 31 3 2 #"in"
0 0 31 3 1 #" "
0 0 31 3 3 #"any"
0 0 31 3 1 #" "
0 0 31 3 2 #"of"
0 0 31 3 1 #" "
0 0 31 3 3 #"its"
0 0 31 29 1 #"\n"
0 0 31 3 14 #"subdirectories"
0 0 31 3 1 #","
0 0 31 3 1 #" "
0 0 31 3 3 #"sub"
0 0 31 3 1 #"-"
0 0 31 3 14 #"subdirectories"
0 0 31 3 3 #"..."
0 0 31 3 1 #")"
0 0 31 3 1 #"."
0 0 31 29 1 #"\n"
0 0 31 3 4 #"Note"
0 0 31 3 1 #":"
0 0 31 3 1 #" "
0 0 31 3 3 #"You"
0 0 31 3 1 #" "
0 0 31 3 4 #"must"
0 0 31 3 1 #" "
0 0 31 3 7 #"include"
0 0 31 3 1 #" "
0 0 31 3 3 #"the"
0 0 31 3 1 #" "
0 0 31 3 9 #"templates"
0 0 31 3 1 #" "
0 0 31 3 3 #"for"
0 0 31 3 1 #" "
0 0 31 3 3 #"all"
0 0 31 3 1 #" "
0 0 31 3 7 #"classes"
0 0 31 3 1 #" "
0 0 31 3 2 #"in"
0 0 31 3 1 #" "
0 0 31 3 4 #"this"
0 0 31 3 1 #" "
0 0 31 3 7 #"problem"
0 0 31 3 1 #","
0 0 31 29 1 #"\n"
0 0 31 3 6 #"except"
0 0 31 3 1 #" "
0 0 31 3 3 #"the"
0 0 31 3 1 #" "
0 0 31 3 10 #"interfaces"
0 0 31 3 1 #" "
0 0 31 3 3 #"and"
0 0 31 3 1 #" "
0 0 31 3 7 #"classes"
0 0 31 3 1 #" "
0 0 31 3 4 #"that"
0 0 31 3 1 #" "
0 0 31 3 9 #"represent"
0 0 31 3 1 #" "
0 0 31 3 5 #"empty"
0 0 31 3 1 #"."
0 0 31 29 1 #"\n"
0 0 31 3 4 #"Note"
0 0 31 3 1 #":"
0 0 31 3 1 #" "
0 0 31 3 3 #"Use"
0 0 31 3 1 #" "
0 0 31 3 6 #"helper"
0 0 31 3 1 #" "
0 0 31 3 6 #"method"
0 0 31 3 1 #" "
0 0 31 3 5 #"where"
0 0 31 3 1 #" "
0 0 31 3 11 #"appropriate"
0 0 31 3 1 #"."
0 0 31 3 2 #"  "
0 0 31 29 1 #"\n"
0 0 31 3 2 #"*/"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 31 3 2 #"/*"
0 0 31 29 1 #"\n"
0 0 31 3 25 #"3.3 Problem: Extra Credit"
0 0 31 29 1 #"\n"
0 0 31 3 37 #"Start with the file excel-cells.java."
0 0 31 29 1 #"\n"
0 0 31 3 74
(
 #"For this problem you will use the classes that represent the values"
 #" in the"
) 0 0 31 29 1 #"\n"
0 0 31 3 72
(
 #"cells of a spreadsheet. For each cell we record the row and column "
 #"where"
) 0 0 31 29 1 #"\n"
0 0 31 3 79
(
 #"the cell is located, and the data stored in that cell. The data can"
 #" either be a"
) 0 0 31 29 1 #"\n"
0 0 31 3 72
(
 #"numerical (integer) value or a formula. Each formula can be one of "
 #"three"
) 0 0 31 29 1 #"\n"
0 0 31 3 72
(
 #"possible functions: + (representing addition), mn (producing the mi"
 #"nimum"
) 0 0 31 29 1 #"\n"
0 0 31 3 76
(
 #"of the two cells), or * (computing the product) and involves two ot"
 #"her cells"
) 0 0 31 29 1 #"\n"
0 0 31 3 19 #"in the computation."
0 0 31 29 1 #"\n"
0 0 31 3 56 #"A. Make an example of the following spreadsheet segment:"
0 0 31 29 1 #"\n"
0 0 31 3 21 #"| A | B | C | D | E |"
0 0 31 29 1 #"\n"
0 0 31 3 10 #"---+------"
0 0 31 3 50 #"----+----------+----------+----------+-----------+"
0 0 31 29 1 #"\n"
0 0 31 3 23 #"1 | 7 | 4 | 3 | 2 | 5 |"
0 0 31 29 1 #"\n"
0 0 31 3 60
#"---+----------+----------+----------+----------+-----------+"
0 0 31 29 1 #"\n"
0 0 31 3 37 #"2 | - A1 E1 | + B1 C1 | | | * A2 D1 |"
0 0 31 29 1 #"\n"
0 0 31 3 60
#"---+----------+----------+----------+----------+-----------+"
0 0 31 29 1 #"\n"
0 0 31 3 30 #"3 | | + B2 B1 | | | mn B3 D1 |"
0 0 31 29 1 #"\n"
0 0 31 3 59
#"---+----------+----------+----------+----------+----------+"
0 0 31 29 1 #"\n"
0 0 31 3 30 #"4 | | + B3 B2 | | | mn B4 D1 |"
0 0 31 29 1 #"\n"
0 0 31 3 60
#"---+----------+----------+----------+----------+-----------+"
0 0 31 29 1 #"\n"
0 0 31 3 29 #"5 | | + B4 B3 | | | * A2 E4 |"
0 0 31 29 1 #"\n"
0 0 31 3 60
#"---+----------+----------+----------+----------+-----------+"
0 0 31 29 1 #"\n"
0 0 31 3 64
#"B. Design the method value that computes the value of this cell."
0 0 31 29 1 #"\n"
0 0 31 3 66
#"C. Design the method countFun that computes the number of function"
0 0 31 29 1 #"\n"
0 0 31 3 54 #"applications needed to compute the value of this cell."
0 0 31 29 1 #"\n"
0 0 31 3 63
#"D. Design the method countPlus that computes the number of Plus"
0 0 31 29 1 #"\n"
0 0 31 3 54 #"applications needed to compute the value of this cell."
0 0 31 29 1 #"\n"
0 0 31 3 62
#"Make sure you design templates, use helper methods, and follow"
0 0 31 29 1 #"\n"
0 0 31 3 54 #"the containment and inheritance arrows in the diagram."
0 0 31 29 1 #"\n"
0 0 31 3 2 #"*/"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 31 3 2 #"/*"
0 0 31 29 1 #"\n"
0 0 31 3 25 #"3.4 Problem: Extra Credit"
0 0 31 29 1 #"\n"
0 0 31 3 12 #"We are given"
0 0 31 3 63
#" two sorted files and would like to combine them into one file."
0 0 31 29 1 #"\n"
0 0 31 3 72
(
 #"For simplicity we will deal with just files of Strings. The String "
 #"class"
) 0 0 31 29 1 #"\n"
0 0 31 3 55 #"defines the following method for comparing two Strings:"
0 0 31 29 1 #"\n"
0 0 31 3 2 #"  "
0 0 31 29 1 #"\n"
0 0 31 3 60
#"// compare this String to the given in lexicographical order"
0 0 31 29 1 #"\n"
0 0 31 3 60
#"// produce an int < 0 if the this String is before the given"
0 0 31 29 1 #"\n"
0 0 31 3 49 #"// produce 0 if this String is equal to the given"
0 0 31 29 1 #"\n"
0 0 31 3 59
#"// produce an int > 0 if the this String is after the given"
0 0 31 29 1 #"\n"
0 0 31 3 31 #"int compare(String that){ ... }"
0 0 31 29 1 #"\n"
0 0 31 3 66
#"A. Design the method isSorted that determines whether this list of"
0 0 31 29 1 #"\n"
0 0 31 3 36 #"Strings is sorted lexicographically."
0 0 31 29 1 #"\n"
0 0 31 3 71
(
 #"B. Design the method merge that is invoked by a sorted list of Stri"
 #"ngs,"
) 0 0 31 29 1 #"\n"
0 0 31 3 67
#"consumes another sorted list of Strings, and produces a new list of"
0 0 31 29 1 #"\n"
0 0 31 3 66
#"Strings that contains all items from both lists in a sorted order."
0 0 31 29 1 #"\n"
0 0 31 3 69
#"Note: You must include the templates for all classes in this problem,"
0 0 31 29 1 #"\n"
0 0 31 3 61
#"except the interfaces and classes that represent empty lists."
0 0 31 29 1 #"\n"
0 0 31 3 42 #"Note: Use helper method where appropriate."
0 0 31 29 1 #"\n"
0 0 31 3 2 #"  "
0 0 31 29 1 #"\n"
0 0 31 3 2 #"*/"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 0 31 3 2 #"/*"
0 0 31 29 1 #"\n"
0 0 31 3 11 #"3.5 Problem"
0 0 31 29 1 #"\n"
0 0 31 3 10 #"Creative P"
0 0 31 3 6 #"roject"
0 0 31 29 1 #"\n"
0 0 31 3 67
#"Design the following game. Shooting stars are falling from the sky,"
0 0 31 29 1 #"\n"
0 0 31 3 70
(
 #"moving straight down at a constant speed on each tick. Each star ha"
 #"s a"
) 0 0 31 29 1 #"\n"
0 0 31 3 74
(
 #"limited lifespan - after some number of ticks it burns out and disa"
 #"ppears."
) 0 0 31 29 1 #"\n"
0 0 31 3 78
(
 #"A geenie in a magical flying machine must collect stars as fuel for"
 #" the flying"
) 0 0 31 29 1 #"\n"
0 0 31 3 77
(
 #"machine. The player steers the flying machine using the arrow keys "
 #"(\302\224left\302\224,"
) 0 0 31 29 1 #"\n"
0 0 31 3 78
(
 #"\302\224right\302\224, \302\224up\302\224, \302\224down\302\224). W"
 #"hen the flying machine catches a star, its fuel"
) 0 0 31 29 1 #"\n"
0 0 31 3 70
(
 #"supply increases and the star disappears. When the flying machine r"
 #"uns"
) 0 0 31 29 1 #"\n"
0 0 31 3 27 #"out of fuel the game stops."
0 0 31 29 1 #"\n"
0 0 31 3 73
(
 #"(Optionally, for extra credit, you may show the flying machine desc"
 #"ending"
) 0 0 31 29 1 #"\n"
0 0 31 3 45 #"to the ground and only then ending the game.)"
0 0 31 29 1 #"\n"
0 0 31 3 74
(
 #"A. Design the classes that represent one star, a list of stars, the"
 #" flying"
) 0 0 31 29 1 #"\n"
0 0 31 3 34 #"machine, and the whole game world."
0 0 31 29 1 #"\n"
0 0 31 3 71
(
 #"B. Design the draw method for all classes that represent the compon"
 #"ents"
) 0 0 31 29 1 #"\n"
0 0 31 3 70
(
 #"of this game as well as for the class that represents your game wor"
 #"ld."
) 0 0 31 29 1 #"\n"
0 0 31 3 46 #"C. Design in the class Star the method onTick."
0 0 31 29 1 #"\n"
0 0 31 3 16 #"D. Design in the"
0 0 31 3 51 #" class Star the method makeStar that produces a new"
0 0 31 29 1 #"\n"
0 0 31 3 66
#"star at a random horizontal position at the top of the Canvas with"
0 0 31 29 1 #"\n"
0 0 31 3 30 #"some randomly chosen lifespan."
0 0 31 29 1 #"\n"
0 0 31 3 2 #"  "
0 0 31 29 1 #"\n"
0 0 31 3 73
(
 #"E. Design in the classes that represent a list of stars the method "
 #"onTick"
) 0 0 31 29 1 #"\n"
0 0 31 3 66
#"that produces a new list of stars by applying the onTick method to"
0 0 31 29 1 #"\n"
0 0 31 3 68
#"each star in this list and replacing any stars that have burned out,"
0 0 31 29 1 #"\n"
0 0 31 3 67
#"have been caught by the flying machine, or have hit the ground by a"
0 0 31 29 1 #"\n"
0 0 31 3 41 #"new star produced by the makeStar method."
0 0 31 29 1 #"\n"
0 0 31 3 70
(
 #"F. Design the method foundStar in the classes that represent a list"
 #" of"
) 0 0 31 29 1 #"\n"
0 0 31 3 68
#"stars that consumes an instance of the flying machine and determines"
0 0 31 29 1 #"\n"
0 0 31 3 69
#"whether there is a star that the flying machine can catch. The flying"
0 0 31 29 1 #"\n"
0 0 31 3 56 #"machine and the star must be close enough to each other."
0 0 31 29 1 #"\n"
0 0 31 3 71
(
 #"G. Design the method caughtStar in the classes that represent a lis"
 #"t of"
) 0 0 31 29 1 #"\n"
0 0 31 3 68
#"stars that consumes an instance of the flying machine and produces a"
0 0 31 29 1 #"\n"
0 0 31 3 71
(
 #"star that the flying machine can catch. The flying machine and the "
 #"star"
) 0 0 31 29 1 #"\n"
0 0 31 3 31 #"must be close enough to each ot"
0 0 31 3 36 #"her. You must not invoke this method"
0 0 31 29 1 #"\n"
0 0 31 3 72
(
 #"unless you have verified that there is a star that can be caught. I"
 #"f two"
) 0 0 31 29 1 #"\n"
0 0 31 3 60
#"or more stars can be caught, produce the first one you find."
0 0 31 29 1 #"\n"
0 0 31 3 70
(
 #"H. Design the method catchStar in the class that represents the fly"
 #"ing"
) 0 0 31 29 1 #"\n"
0 0 31 3 67
#"machine that consumes a star and produces a flying machine with the"
0 0 31 29 1 #"\n"
0 0 31 3 55 #"fuel supply increased by the star's remaining lifespan."
0 0 31 29 1 #"\n"
0 0 31 3 71
(
 #"I. Design the method onKeyEvent in the class that represents the fl"
 #"ying"
) 0 0 31 29 1 #"\n"
0 0 31 3 63
#"machine that consumes a String that represents one of the arrow"
0 0 31 29 1 #"\n"
0 0 31 3 45 #"keys and produces a star at the new location."
0 0 31 29 1 #"\n"
0 0 31 3 65
#"J. Design the method onKeyEvent in the class that represents your"
0 0 31 29 1 #"\n"
0 0 31 3 63
#"game world. The method consumes a String that represents one of"
0 0 31 29 1 #"\n"
0 0 31 3 65
#"the arrow keys and produces a new instance of the game world with"
0 0 31 29 1 #"\n"
0 0 31 3 64
#"the flying machine moved as appropriate, checking whether any of"
0 0 31 29 1 #"\n"
0 0 31 3 68
#"the stars can be caught, and ... - we will let you fill in the rest."
0 0 31 29 1 #"\n"
0 0 31 3 70
(
 #"K. Finally, design the method onTick for the class that represents "
 #"the"
) 0 0 31 29 1 #"\n"
0 0 31 3 11 #"game world."
0 0 31 29 1 #"\n"
0 0 31 3 2 #"  "
0 0 31 29 1 #"\n"
0 0 31 3 19 #"When you are ready "
0 0 31 3 33 #"to run the game do the following:"
0 0 31 29 1 #"\n"
0 0 31 3 57
#"\17 Change the line that defines you GameWorld class to be:"
0 0 31 29 1 #"\n"
0 0 31 3 30 #"class GameWorld extends World{"
0 0 31 29 1 #"\n"
0 0 31 3 71
(
 #"Of course, you will use whatever is the name of your class that def"
 #"ines"
) 0 0 31 29 1 #"\n"
0 0 31 3 67
#"your world. If you have named it just World, you need to change its"
0 0 31 29 1 #"\n"
0 0 31 3 28 #"name to something different."
0 0 31 29 1 #"\n"
0 0 31 3 55 #"\17 Change the language level to Intermediate ProfessorJ."
0 0 31 29 1 #"\n"
0 0 31 3 43 #"\17 Include on your Examples class the method"
0 0 31 29 1 #"\n"
0 0 31 3 13 #"boolean go(){"
0 0 31 29 1 #"\n"
0 0 31 3 50 #"return this.myInitialWorld.bigBang(200, 300, 0.1);"
0 0 31 29 1 #"\n"
0 0 31 3 1 #"}"
0 0 31 29 1 #"\n"
0 0 31 3 59
#"\302\227 assuming you have defined myInitialWorld in the Examples"
0 0 31 29 1 #"\n"
0 0 31 3 70
(
 #"class, want your Canvas to be 200 pixels wide and 300 pixels tall, "
 #"and"
) 0 0 31 29 1 #"\n"
0 0 31 3 67
#"want the clock tick at every 0.1 second. Of course, you choose your"
0 0 31 29 1 #"\n"
0 0 31 3 32 #"own names, sizes, and the speed."
0 0 31 29 1 #"\n"
0 0 31 3 70
(
 #"\17 Run the program, then in the Interactions window type the foll"
 #"owing:"
) 0 0 31 29 1 #"\n"
0 0 31 3 30 #"> Examples e = new Examples();"
0 0 31 29 1 #"\n"
0 0 31 3 8 #"> e.go()"
0 0 31 29 1 #"\n"
0 0 31 3 11 #"\17 Have fun."
0 0 31 29 1 #"\n"
0 0 31 29 1 #"\n"
0 0 31 3 2 #"*/"
0 0 4 29 1 #"\n"
0 0 4 29 1 #"\n"
0 00000000000
